<?php

namespace app\api\validate;

use think\Validate;

class Address extends Validate{
    protected $rule = [
        'name' => 'require',
        'address' => 'require',
        'mobile' => 'require|mobile',
        'postcode' => 'require'
    ];

    protected $message = [
        'address' => '收货地址不能为空',
        'name' => '姓名不能为空',
        'mobile' => '手机号码不正确',
        'postcode' => '请输入邮编',
    ];

}







